The restrictive measures triggered Muslim protests, and Israel eventually removed the devices.
Jordan's king flew by helicopter to the West Bank on Monday - a rare and brief visit seen as a signal to Israel that he is closing ranks with the Palestinians on key issues, such as a contested Jerusalem shrine.
Many blame Jordan's policies for the failure of repeated attempts for the establishment of a Palestinian state as the country enjoys close relations with Western governments that support Israel.
Over the past several months, Abbas, as head of the Palestinian Authority, has stepped up pressure on Hamas, cutting off salaries for civil servants in Gaza, limiting payments to Israel for electricity imports and some medicines.
The site is the third holiest site for Muslims after Mecca and Medina in Saudi Arabia.
The king was received at the helipad of the Muqata, Abbas's presidential headquarters.
Israel joins UAE and Egypt with Al Jazeera ban
Al Jazeera says its journalists were barred from the press conference where the announcement was made. Defense Minister Avigdor Lieberman has likened its coverage to "Nazi Germany-style" propaganda.
Showers and thunderstorms likely today. Some storms could be strong to severe
Similar to Friday , there will likely be some areas of light rain around to start the day Saturday . Dew points north of I-20 should be in the upper 60s, but south of I-20 will remain in the low 70s.
10% Model 3 orders cancelled, but numbers jump since launch
But Musk said there "will be significant carryover" from Model 3 production in order to bring the compact SUV to market faster. Musk outlined the production plan for the Model 3, which forecasts a production of 5,000 cars per week by the end of 2017.
"Without the Hashemite custodianship [of Al-Aqsa] and the steadfastness of the Jerusalemites, the holy sites would have been lost many years ago", he said, according to the official Petra news agency.
Israeli regime authorities shut down Al-Aqsa compound for nearly three days following a deadly shooting attack on July 14, only to reopen it after having installed increased and humiliating security measures.
"This visit comes at a very important time to do a joint assessment on the problem of Israeli attacks against Al Aqsa in Jerusalem and attempts to change the status quo at Al Aqsa", Mr Al Malki said. A few hours later, the metal detectors were dismantled. The king blasted the prime minister's actions as "provocative".
Mohammed Shtayyeh, a top official in the Fatah party of Abbas, told AFP on Saturday the two leaders would discuss efforts to revive the Israeli-Palestinian peace process, which has been at a standstill since 2014.
Jordan retains custody of the mosque through an Islamic endowment, known as the Waqf, and the Jordanian monarch announced last week that he would be donating $1 million to its Islamic Museum, 300 Jordanian dinars ($423) to Waqf employees and be making a special payment to certain guards.
"We have gone through a tough situation in the past two weeks, in an nearly unprecedented confrontation with the (Israeli) occupation, but thanks god and to the coordination with all parties the efforts of the people of Jerusalem, we were able to exit this crisis peacefully", said Al-Husseini.